<div class="list_users">
<table>
	<tr class="header">				
		<td>
			<?php echo langEcho("email");?>
		</td>		
		<td>
			<?php echo langEcho("active");?>
		</td>
		<td>
			<?php echo langEcho("options");?>
		</td>
	</tr>	

<?php

$entities = getInputArray("entities", $params, array());
$editUrl = getInputArray("editUrl", $params);

foreach($entities as $entity){
?>
	<tr>		
		
		<td>
			<?php echo $entity->attributes->email; ?>
		</td>		
		<td>
			<?php	
				if ($entity->attributes->active){
					echo langEcho("active");	
				}
				else{
					echo langEcho("inactive");
				}
			?>
		</td>
		<td>
			<?php
				$editUrlLink = $editUrl . $entity->attributes->id;
				$deleteUrl = WWWROOT . "actions/admin/user/delete.php?id=" . $entity->attributes->id;
							
				echo "	<div class='buttonEditDiv'>
							<a class='asdf' href='$editUrlLink' title='".langEcho("edit")."'>".langEcho("edit")."</a>
						</div>
						<div class='buttonEditDiv'>
							&nbsp;&nbsp;|&nbsp;&nbsp;
						</div>
						<div class='buttonEditDiv'>
							". loadView("input/deleteA", array("href" => $deleteUrl, "title" => langEcho("delete"), "text" => langEcho("delete"), "confirmationText" => sprintf(langEcho("deleteUserConfirmationText"),$entity->attributes->login_name))) ."
						</div>";					
			?>
		</td>		
	</td>
<?
}
?>

</table>
</div>